System and method for converting a standard generalized markup language in multiple languages

ABSTRACT

A method for converting text characters from a Standard Generalized Markup Language file into another specified language using a CONVERSTR variable, a HTMLCODE variable and a VAL variable, wherein each character represents a tag or text, and each tag has a start and an end, which includes the steps of (a) reading a character from the file, (b) determining whether the read character is the start of a tag, (c) adding the read character to the CONVERTSTR variable when the read character is not the start of a tag, (d) repeating steps (a), (b) and (c) for a next character until a read character is the start of a tag, (e) converting the CONVERTSTR variable into the specified language, and (f) adding the converted CONVERTSTR variable to the HTMLCODE variable.

[0001] The present invention generally relates to an improved method andsystem for converting text from a Standard Generalized Markup Language(“SGML”) file having a plurality of characters to another specifiedlanguage. More specifically, it relates to an improved method and systemfor converting text from a Standard Generalized Markup Language filehaving a plurality of characters into another specified language using aCONVERSTR variable, a HTMLCODE variable and a VAL variable, wherein eachcharacter represents a tag or text, and each tag has a start and an end.

[0002] As a result of the Internet, global communication has becomecommonplace for most business interactions. It is currently quitetypical that a file is required to be available in multiple languages.This is especially useful for World Wide Web communications because theInternet is used in different countries. Thus, there is a clear need forfiles and web pages to be available in multiple languages. Putdifferently, files and web pages need to be adapted for use with aninternational market.

[0003] Currently, most web pages that are available in differentlanguages are done on a page-level basis, meaning each and every page isstored in different language versions. For example, in the context ofthe web, if a Hyper Text Markup Language (“HTML”) page is available infive languages, the HTML page in each language constitutes a separatefile. So, because five different languages are available, there will befive files for the same HTML page. In other words, there is one file foreach available language.

[0004] One problem with this prior method is that it is necessary tocode the pages for each language. Another problem is that because thesame page must be kept in multiple files for different languages, theprior method inefficiently uses memory. This will become more acute asthe use of Personal Digital Assistants (“PDAs”) becomes more popular,since these portable computers tend to have less storage memory. Inaddition, the use of multiple files makes revisions to these files andpages very time consuming and error prone, since each file must beseparately revised. Thus, there is a need for an improved method thatcan translate the web pages into different languages.

BRIEF SUMMARY OF THE INVENTION

[0005] The present invention is directed to an improved method andsystem for providing a file in multiple languages. More specifically, itrelates to an improved method and system for converting text charactersfrom a Standard Generalized Markup Language file into another specifiedlanguage using a CONVERSTR variable, a HTMLCODE variable and a VALvariable, wherein each character represents a tag or text, and each taghas a start and an end.

[0006] The present invention provides a method that includes the stepsof (a) reading a character from the file, (b) determining whether theread character is the start of a tag, (c) adding the read character tothe CONVERTSTR variable when the read character is not the start of atag, (d) repeating steps (a), (b) and (c) for a next character until aread character is the start of a tag, (e) converting the CONVERTSTRvariable into the specified language, and (f) adding the convertedCONVERTSTR variable to the HTMLCODE variable.

[0007] The present invention also provides a system that includes aHTMLCODE variable for defining the strings in the Standard GeneralizedMarkup Language coding, a CONVERTSTR variable for defining the stringsthat are to be converted into the specified language, a VAL variable fordefining the strings that have been converted into the specifiedlanguage, and a translator for translating the strings in the CONVERTSTRvariable into the specified language.

DESCRIPTION OF THE DRAWINGS

[0008]FIG. 1 is a block diagram of a network system in which the presentinvention can be implemented;

[0009]FIG. 2 is a flow chart illustrating the overall preferredfunctionality of the method of the present invention;

[0010]FIG. 3 is a flow chart illustrating the preferred functionality ofthe parsing method of the present invention shown in FIG. 2;

[0011]FIG. 4 illustrates the preferred code configuration of thepreferred functionality of the parsing method;

[0012]FIG. 5 is an exemplary web content in a Hypertext Markup Languagefile that can be used with the present invention; and,

[0013]FIG. 6 illustrates the Hypertext Markup Language file shown inFIG. 5 that is displayed in two different languages.

GLOSSARY OF TERMS AND ACRONYMS

[0014] The following terms and acronyms are used throughout the detaileddescription:

[0015] Client-Server. A model of interaction in a distributed system inwhich a program at one site sends a request to a program at another siteand waits for a response. The requesting program is called the “client,”and the program which responds to the request is called the “server.” Inthe context of the World Wide Web (discussed below), the client is a“Web browser” (or simply “browser”) which runs on the computer of auser; the program which responds to browser requests by serving Webpages, or other types of Web content, is commonly referred to as a “Webserver.”

[0016] Content. A set of executable instructions that is served by aserver to a client and that is intended to be executed by the client soas to provide the client with certain functionality. Web content refersto content that is meant to be executed by operation of a Web browser.Web content, therefore, may non-exhaustively include one or more of thefollowing: HTML code, SGML code, XML code, XSL code, CSS code, Javaapplet, JavaScript and C-“Sharp” code.

[0017] CONVERTSTR variable. A variable of the present invention thatdefines the strings that are to be converted into a specified language.

[0018] HTMLCODE variable. A variable of the present invention thatdefines the strings in the Standard Generalized Markup Language coding.

[0019] Hyper Text Markup Language (“HTML”). A standard coding conventionand set of codes for attaching presentation and linking attributes toinformational content within documents. During a document authoringstage, the HTML codes (referred to as “tags”) are embedded within theinformational content of the document. When the Web document (or HTMLdocument) is subsequently transferred from a Web server to a browser,the codes are interpreted by the browser and used to display thedocument. Additionally, in specifying how the Web browser is to displaythe document, HTML tags can be used to create links to other Webdocuments (commonly referred to as “hyperlinks”). For more informationon HTML, see Ian S. Graham, The HTML Source Book, John Wiley and Sons,Inc., 1995 (ISBN 0471-11894-4).

[0020] Hyper Text Transport Protocol (“HTTP”). The standard World WideWeb client-server protocol used for the exchange of information (such asHTML documents, and client requests for such documents) between abrowser and a Web server. HTTP includes a number of different types ofrequests, which can be sent from the client to the server to requestdifferent types of server actions. For example, a “GET” request, whichhas the format GET <URL>, causes the server to return the document orfile located at the specified URL.

[0021] Hyperlink. A navigational link from one document to another, fromone portion (or component) of a document to another, or to a Webresource, such as a Java applet. Typically, a hyperlink is displayed asa highlighted word or phrase that can be selected by clicking on itusing a mouse to jump to the associated document or document portion orto retrieve a particular resource.

[0022] Hypertext System. A computer-based informational system in whichdocuments (and possibly other types of data entities) are linkedtogether via hyperlinks to form a user-navigable “web.”

[0023] Internet. A collection of interconnected or disconnected networks(public and/or private) that are linked together by a set of standardprotocols (such as TCP/IP and HTTP) to form a global, distributednetwork. (While this term is intended to refer to what is now commonlyknown as the Internet, it is also intended to encompass variations whichmay be made in the future, including changes and additions to existingstandard protocols.)

[0024] Parser. An algorithm or program to determine the syntacticstructure of a sentence or string of symbols in some language. A parsernormally takes as input a sequence of tokens output by a lexicalanalyzer. It may produce some kind of abstract syntax tree as output.

[0025] Personal Digital Assistant (PDA). A small hand-held computer usedto write notes, track appointments, manage email and browse the web,etc., generally with far less storage capacity than a desktop computer.

[0026] Plug-In. A file containing data used to alter, enhance, or extendthe operation of a parent application program. For example, a browserplug-in is a file that is configured to alter, enhance or extend theoperations of a web browser.

[0027] String. A string is a sequence of data values, usually bytes,which usually stand for characters (a “character string”). The mappingbetween values and characters is determined by the character set whichis itself specified implicitly or explicitly by the environment in whichthe string is being interpreted.

[0028] Tag. An SGML, HTML, or XML token representing the beginning(start tag: “<p . . . >”) or end (end tag: “</p>”) of an element. Innormal SGML syntax (and always in XML), a tag starts with a “<” and endswith an “>”. In HTML jargon, the term “tag” is often used for an“element”.

[0029] Text Characters. Text characters represent the actual text thatare to be displayed to the users within a SGML file. In contrast, thetags in the SGML file generally defines the formats of the textcharacters (e.g., <bold></bold>).

[0030] URL (Uniform Resource Locator). A unique address which fullyspecifies the location of a file or other resource on the Internet or anetwork. The general format of a URL is protocol: //machineaddress:port/path/filename.

[0031] VAL variable. A variable of the present invention that definesthe strings that have been converted into the specified language.

[0032] Web Browser. A browser for browsing the World-Wide Web.Currently, the two main standard browsers are Microsoft InternetExplorer™ from Microsoft Corporation and Netscape Navigator™ fromNetscape Communications Corporation.

[0033] Web Site. A computer system that serves informational contentover a network using the standard protocols of the World Wide Web.Typically, a Web site corresponds to a particular Internet domain name,such as “HP.com,” and includes the content associated with a particularorganization. As used herein, the term is generally intended toencompass both (i) the hardware/software server components that servethe informational content over the network, and (ii) the “back end”hardware/software components, including any non-standard or specializedcomponents, that interact with the server components to perform servicesfor Web site users. More importantly, a Web Site can have additionalfunctionality, for example, a Web site may have the ability to printdocuments, scan documents, etc.

[0034] World Wide Web (“Web”). Used herein to refer generally to both(i) a distributed collection of interlinked, user-viewable hypertextdocuments (commonly referred to as Web documents or Web pages) that areaccessible via the Internet, and (ii) the client and server softwarecomponents which provide user access to such documents usingstandardized Internet protocols. Currently, the primary standardprotocol for allowing applications to locate and acquire Web documentsis HTTP, and the Web pages are encoded using HTML. However, the terms“Web” and “World Wide Web” are intended to encompass future markuplanguages and transport protocols which may be used in place of (or inaddition to) HTML and HTTP.

DETAILED DESCRIPTION

[0035] Broadly stated, the present invention is directed to a method andsystem for converting text from a SGML file having a plurality ofcharacters into another specified language, wherein each characterrepresents a tag or text. Each tag has a start and an end. The methodand system provides a way to translate a file in multiple languagesusing a CONVERSTR variable, a HTMLCODE variable and a VAL variable. As aresult, multiple languages can be displayed with the use of a singlefile using the present invention.

[0036] The present invention first reads a character from the SGML file,and determines whether the read character is the start of a tag. Theread character is added to the CONVERTSTR variable when it is determinedthat the read character is not the start of a tag, and the process isrepeated for each successive character until a read character is thestart of a tag. Upon finding a read character that is the start of atag, the CONVERTSTR variable is converted into the specified languageand added to the HTMLCODE variable.

[0037] The network system in which the present invention can beimplemented is shown in FIG. 1, and indicated generally at 10. Twoclient computers 12 are connected to a server computer 14 configured forthe present invention via a network 16. Although the Internet is thepreferable network connection 16 because it provides a very flexible anduniversal system of communication, other networks, such as an intranet,are contemplated by the present invention as well.

[0038] For example, a web-based implementation, although preferred, isnot the only option available. The present invention can be configuredand coded to work with different network or operation systems. In fact,the present invention can be implemented without a network system atall. It can also be implemented with the use of a storage medium, suchas a CD Rom, or installed software, such as a browser plug-in, on astandalone computer (not shown).

[0039] As a result of the many possible implementations for the presentinvention, an explanation of the current preferred embodiment of thenetwork topology is given as an example. The complexity of the variousavailable implementations is furthered by the use of different fileformats that can change as a result, and the software or firmware neededto work with the given desired file formats.

[0040] In trying to present a clearer description of the presentinvention, a web-based implementation will be used as an example.However, it should be understood that others skilled in the art canappreciate the implementations of the various systems andconfigurations, and these implementations are within the scope of thepresent invention.

[0041] With a web-based implementation shown as an example, each clientcomputer 12 includes a browser 18 for communicating. As shown, theserver computer 14 also includes software 20 for translating HTML files22 from any of the client computers 12 to translated HTML files 24,which is forwarded to the client computer that originated thetranslation request. It should be noted that although a HTML file isdescribed as an example, any type of SGML files, such as XML, can beused with the present invention. Thus, it should be appreciated thatother implementations with the use of other types of SGML files arecontemplated, and are within the scope of the present invention.

[0042] The preferred code configuration is shown in FIG. 2, andindicated generally at 40. Because the present invention can beimplemented in numerous ways, the preferred code configuration is brokendown in various variables and loops. For example, the name give to thevariables can be changed, and the loops can also be altered slightly.However, a person of ordinary skill in the art would appreciate thatvarious methods can be implemented following the general break down ofthe code configurations. Consequently, other similar code configurationsand methods are contemplated and are within the scope of the presentinvention.

[0043] In the preferred embodiment, there are three main variables,specifically the HTMLCODE, CONVERTSTR, and VAL variable. The HTMLCODEvariable defines the strings in the Standard Generalized Markup Languagecoding. The remaining variable relates to the conversions. TheCONVERTSTR variable defines the strings that are to be converted intothe specified language, and the VAL variable defines the strings thathave been converted into the specified language. Although not shown, thepresent invention includes a translator for translating the strings inthe CONVERTSTR variable into the specified language. The translator canbe any already commercially available translator that can be configuredto work with the present invention. The translator contemplated can beany general translator that can translate phrases or sentences. In fact,most of these translator are available on the internet. The web site athttp://www.web-a-dex.com/translate.htm provides a list of some of thesetranslators that are freely available on the Internet. However, itshould be noted that the present invention can be implemented with otheravailable translators, and the various implementations with differenttranslators are within the scope of the present invention.

[0044] The variables are initialized by being set to empty (e.g.,HTMLCODE=“ ”; CONVERTSTR=“ ”; VAL=“ ”). Since characters must be readfrom the HTML file, the code configuration includes a command to readthe character (i.e., READ CHAR;). Overall, there are four importantloops. The first loop runs through all the characters of the file, andconverts the text characters. While it is not the end of the file (i.e.,EOF), the CONVERTSTR and VAL variables are initialized. Another loopwill simply move the HTML tags to the HTMLCODE variable. There isanother loop that reads all the characters for placement in theCONVERTSTR variable until a read character is the start of the tags. Thelast loop provides that, if the CONVERTSTR variable is not empty (i.e.,if CONVERTSTR!=“ ”), run the VAL variable, which is defined as thefunction to translate the strings in the CONVERTSTR variable into thespecified language. Then, the VAL variable is finally added to theHTMLCODE variable to convert the file back to HTML format after thetranslation is done.

[0045] Turning to an important aspect of the present invention, a flowchart of the preferred functionality of a method is shown in FIG. 3, andindicated generally at 50. The method is initiated by a user, through auser interface, requesting a HTML file to be displayed in anotherspecified language (block 52). The HTML file requested for thetranslation is first downloaded to the cache memory (block 54), and theHTML file is processed through a HTML parser, which will initiate aparsing method (block 56) shown in FIG. 4.

[0046] Turning to FIG. 4, a flow chart of the preferred functionality ofthe parsing method is shown, and indicated generally at 56. A HTMLCODEvariable is first initialized (block 58). In practice, the HTMLCODEvariable is initialized by defining it to empty (i.e., HTMLCODE=“ ”;).Then, a first character is read from the HTML file (i.e., read char;)(block 62). It is next determined whether the read character (e.g.,first character) is at the end of the file (block 62). Since it is thefirst character, it is unlikely that it is at the end of file. However,if the read character is at the end of file (block 62), the parsingmethod will end and continue back to FIG. 3. Otherwise, the CONVERTSTRvariable will be initialized (block 66) if the read character is not atthe end of the file (block 62). Similarly, to initialize the CONVERTSTRvariable in the preferred embodiment, it is defined as empty (i.e.,CONVERTSTR=“ ”).

[0047] From the read character, which is still the first character ofthe HTML file, it is determined whether the read character is the startof a tag (i.e., char=“<”) (block 68). If the read character is not thestart of a tag (block 68), the method will loop to a second subroutine,wherein the first step is to determine whether the read character is thestart of a tag (block 70). However, for the case of the first character,the process will continue to the next step of determining whether theread character (e.g., the first character) is an end of a tag, (i.e.,char=“>”) (block 72) since the first character of the HTML filegenerally always begins with the start of a tag (i.e., “<”). If the readcharacter is an end of a tag (block 72), the process will be forwardedto the next subroutine, specifically the step of determining whether thecharacter is the start of a tag (block 70).

[0048] However, in the case of the first character, because it cannot bethe end of a tag (block 72), it is next determined whether the readcharacter is at the end of the file (block 74), which it likely will notbe. However, if it is at the end of the file (block 74), the readcharacter will be forwarded to the second subroutine starting with thestep of determining whether the character is the start of a tag (block70).

[0049] The read character, if it is not at the end of the file, is addedto the HTMLCODE variable (i.e., HTMLCODE=HTMLCODE+char) (block 76),which is followed by the next character being read (block 78). Thisnewly read next character is looped back to the step of determiningwhether the read character is the end of a tag (block 72). Thesubroutine is repeated until a character is either the end of a tag(i.e., char=“>”) (block 72) or at the end of the file (block 74). Theread character then continues to the second subroutine, which determineswhether it is the start of a tag (i.e., char=“<”) (block 70).

[0050] From the second subroutine, if the read character is not thestart of a tag (block 70), it is next determined whether the readcharacter is at the end of the file (block 80). If the read character isnot at the end of the file (block 80), the read character is added tothe CONVERTSTR variable (i.e., CONVERTSTR=CONVERTSTR+CHAR) (block 82),which is followed by a reading of the next character (i.e., READ CHAR;)(block 84). For the next read character, the method loops back to thestarting step of the second subroutine, specifically determining whetherthe character is the start of a tag (block 70).

[0051] Each character is read and looped back until either a characteris the start of a tag (block 70) or the character is at the end of thefile (block 80). The method continues on to the next step of determiningwhether the CONVERTSTR variable is empty (i.e., CONVERTSTR=“ ”?) (block86). If it is empty (block 86), the method loops back to the step ofdetermining whether the read character is at the end of the file (block62). Otherwise, the string in the CONVERTSTR is translated to thespecified language, which is placed in a VAL variable (i.e.,VAL=CONVERT(CONVERTSTR)) (block 88). The converted string is added tothe HTMLCODE variable (i.e., HTMLCODE=HTMLCODE+VAL) (block 90). At thispoint, the earlier read character that was either the start of a tag(block 70) or at the end of the file (block 80), is looped back to thestep of determining whether the read character is at the end of the file(block 62), and the process starts again.

[0052] After all the characters have been processed, or morespecifically, after a read character is determined to be at the end ofthe file (block 62), the parsing method is then completed. The methodcontinues back to FIG. 3, and it is then determined whether the parsingof the HTML file was successful (block 92). If it was not successful(block 92), an error message is returned to the user (block 94) and theHTML file without the translation will be displayed to the user (block96). On the other hand, if the parsing was successful (block 92), thetranslated HTML file containing the parsed codes will be saved to thecache memory (block 98) and displayed to the user (block 100).

[0053] An exemplary web content in a HTML file is shown in FIG. 5, and atranslated and an untranslated version of the web page for the HTML fileis shown in FIG. 6. FIG. 5 illustrates a real simplified HTML file,titled “test.html” with the text, “Hello World!” Notice that the text inthe original HTML file (i.e., test.html) is in the English language, andthat the present invention provides a way to parse through the test.htmlfile and translate the text into the French language, which now reads“Bonjour Monde!” Also, please notice that both web pages bear the samefile name, specifically “test.html.”

[0054] From the foregoing description, it should be understood that animproved system and method for providing a file in multiple languageshas been shown and described, which has many desirable attributes andadvantages. The system and method provides a way for a HTML file to bedisplayed in multiple languages. By the use of a parsing method, thepresent invention is able to isolate the text in the file fortranslations to other desired languages. Thus, multiple languages can bedisplayed with the use of a single HTML file. In addition, there is nospecified modifications or coding required for displaying the same HTMLfile in other languages, and any updating of the file can be made moreconsistently and with less effort.

[0055] While various embodiments of the present invention have beenshown and described, it should be understood that other modifications,substitutions and alternatives are apparent to one of ordinary skill inthe art. Such modifications, substitutions and alternatives can be madewithout departing from the spirit and scope of the invention, whichshould be determined from the appended claims.

[0056] Various features of the invention are set forth in the appendedclaims.

What is claimed is:
 1. A method for converting text characters from aStandard Generalized Markup Language file into another specifiedlanguage using a CONVERSTR variable, a HTMLCODE variable and a VALvariable, wherein each character represents a tag or text, and each taghas a start and an end, said method comprising the steps of: (a) readinga character from the file; (b) determining whether the read character isthe start of a tag; (c) adding the read character to the CONVERTSTRvariable when the read character is not the start of a tag; (d)repeating steps (a), (b) and (c) for a next character until a readcharacter is the start of a tag; (e) converting the CONVERTSTR variableinto the specified language; and, (f) adding the converted CONVERTSTRvariable to the HTMLCODE variable.
 2. The method according to claim 1wherein prior to step (a) further comprising the steps of: (g)initializing the HTMLCODE variable; and, (h) reading a first characterfrom the file.
 3. The method according to claim 2 wherein prior to step(g) further comprising the step of (i) downloading a StandardGeneralized Markup Language file.
 4. The method according to claim 1wherein prior to step (b) further comprising the steps of: (j)determining whether the read character is the end of file; (k)initializing the CONVERTSTR variable when the read character is not theend of the file; and, (l) determining whether the parsing of the file issuccessful when the read character is the end of the file.
 5. The methodaccording to claim 4 wherein said step (k) further comprising the stepsof: (m) returning an error message to the user when the parsing of thefile is not successful; (n) saving the translated Standard GeneralizedMarkup Language file with the parsed code to the cache memory when theparsing of the file is successful; and, (o) displaying the translatedStandard Generalized Markup Language file saved in the cache memory tothe user.
 6. The method according to claim 5 wherein said step (m)further comprising the step of (p) displaying the Standard GeneralizedMarkup Language file without the translation.
 7. The method according toclaim 1 wherein prior to step (b) further comprising the steps of: (r)determining whether the read character is the start of a tag; (s)determining whether the read character is the end of a tag when the readcharacter is the start of a tag; (t) repeating from step (b) when theread character is not the start of a tag.
 8. The method according toclaim 7 wherein said (s) step further comprising the steps of: (u)adding the read character to the HTMLCODE variable when the readcharacter is not the end of a tag; (v) repeating (s) and (t) for a nextcharacter until a read character is the end of a tag; and, (w) repeatingfrom step (b) when the read character is the end of a tag.
 9. The methodaccording to claim 7 wherein said (s) step further comprising the stepsof: (x) determining whether the read character is at the end of the filewhen the read character is not the end of a tag; (y) repeating from step(b) when the read character is at the end of the file; (z) adding theread character to the HTMLCODE variable when the read character is notat the end of the file; and, (aa) repeating steps (s) and (z) for a nextcharacter until a read character is the end of a tag.
 10. The methodaccording to claim 4 wherein step (b) further comprising the steps of:(bb) determining whether the CONVERTSTR variable is empty when the readcharacter is the start of a tag; and, (cc) repeating from step (j) whenthe CONVERTSTR variable is empty.
 11. The method according to claim 10wherein prior to said step (bb) further comprising the steps of: (dd)determining whether the read character is at the end of the file; (ee)repeating from step (e) when the read character is at the end of thefile.
 12. The method according to claim 4 wherein step (f) furthercomprising the step of (ff) repeating from step (i).
 13. A system forconverting text characters from a Standard Generalized Markup Languagefile into another specified language, wherein each character representsa tag or text, and each tag has a start and an end, comprising: aHTMLCODE variable for defining the strings in the Standard GeneralizedMarkup Language coding; a CONVERTSTR variable for defining the stringsthat are to be converted into the specified language; a VAL variable fordefining the strings that have been converted into the specifiedlanguage; and, a translator for translating the strings in theCONVERTSTR variable into the specified language.
 14. A system forconverting text characters from a Standard Generalized Markup Languagefile into another specified language using a CONVERSTR variable, aHTMLCODE variable and a VAL variable, wherein each character representsa tag or text, and each tag has a start and an end, comprising: meansfor reading a character from the file; means for determining whether theread character is the start of a tag; means for adding the readcharacter to the CONVERTSTR variable when the read character is not thestart of a tag; means for repeating the process for a next characteruntil a read character is the start of a tag; means for converting theCONVERTSTR variable into the specified language; and, means for addingthe converted CONVERTSTR variable to the HTMLCODE variable.
 15. Acomputer program product comprising a computer usable medium havingcomputer readable program codes embodied in the medium that whenexecuted causes a computer to: read a character from the file; determinewhether the read character is the start of a tag; add the read characterto the CONVERTSTR variable when the read character is not the start of atag; repeat the process for a next character until a read character isthe start of a tag; convert the CONVERTSTR variable into the specifiedlanguage; and, add the converted CONVERTSTR variable to the HTMLCODEvariable.